//获取应用实例
const app = getApp();

Page({
	data: {
    msglists:[{},{},{},{},{}]
  },
	onLoad: function() {
    this.getList();
  },



  //获取消息列表
  getList() {
    var that = this;
    wx.request({
      url: app.globalData.api + '/index.php/wap/Notice/getList',
      data:
      {
        token: app.globalData.token,
        n_key: 7,
      },
      //2      
      //4
      headers: {
        'platform': '' + app.globalData.platform,
        'version': '' + app.globalData.version,
      },
      method: 'POST',
      dataType: 'json',
      success: function (res) {
        console.log(res);
        if (res.data.code == 1) {

        }
      }, fail: function () {

      }
    });
  },
  
});
